home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / sticpsrc.lzh / SOURCE.ARC / PASSWORD.H < prev    next >
C/C++ Source or Header  |  1988-10-23  |  380b  |  14 lines

  1. /* Password-protection for cricical services */
  2.  
  3. #define P_ROWS        3        /* number of different rows */
  4. #define P_NUMS        5        /* number of different numbers */
  5.  
  6. struct password {
  7.     char *paswrd;            /* the actual password */
  8.     int chall[P_ROWS][P_NUMS];    /* the challenge sent to the user */
  9.     int okay;            /* set when response okay */
  10. };
  11.  
  12. char *gen_challenge();
  13. int ok_password();
  14.